package com.emergency.assist.dao;

import com.emergency.assist.domain.Route;
import com.emergency.assist.domain.RouteOptimal;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

/*
*
 * Created by qiuyan.pei on 2020/3/12.
*/


public interface RouteDao extends JpaRepository<Route,Long> , JpaSpecificationExecutor<Route> {


    List<Route> findAllByOriginAndDestination(String origin, String destination);
}
